/*
 * Copyright (c) 2006 - 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.stream.Collectors;

/**
 * <p>Project: app2022 - BufferedReader2
 * <p>Powered by webrx On 2022-01-19 11:58:26
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class BufferedReader2 {
    public static void main(String[] args) {
        try (var br = new BufferedReader(new FileReader("C:\\app2022\\08io\\src\\main\\java\\cn\\webrx\\BufferedReader2.java"))) {
            String txt = br.lines().collect(Collectors.joining("\n"));
            System.out.println(txt);
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
